Slides: OpenOffice
PowerPoint
Reading: HFJS Ch. 4 and 5
Preliminary project pages due today.
Lab
- Create a directory inside the
Labs
directory on your thumbdrive for today's lab.
-
Finish up a program from Chapter 4: Stick Figure Adventure
http://headfirstlabs.com/books/hfjs/ch03.php
Starting with sfa1.html, there are two paths that currently end as "To Be Continued."
Choose one of them and extend it with at least two more scenes.
For each new scene, find an image (a png file somewhere on the web) to represent the scene and
store it in the directory of images.
Include at least one decision in your new part of the adventure.
-
Create a page that converts decimal numbers to a hexidecimal String.
- Prompt the user to enter a number
- Complain, if the user enters something that is not a number, is negative, or is greater that 15.
- Convert the number (unchanged) to a String, if it is less than 10
- If the number is 10, convert it to
A
- If the number is 1l, convert it to
B
- ...
- If the number is 15, convert it to
F
- Display the original value input by the user and the computed hex value on your page
-
Add links to the files from today's lab to the index.html file in your
Labs
directory.
- Using FileZilla (or another FTP client), synchronize your website to the image on your thumbdrive.
Always shut down your computer and turn off your display before leaving the lab.